/*
 * DataReader.h
 *
 *  Created on: Nov 17, 2010
 *      Author: dblyth
 */

#ifndef DATAREADER_H_
#define DATAREADER_H_

#include <string.h>
#include <sstream>

class TFile;
class TTree;

class DataReader {
public:
	DataReader(std::string baseDir, int runNumber);
	virtual ~DataReader();

	void GetData(int index, double*& sumReturn);

private:
	TFile* crate0;
	TFile* crate1;
	TFile* crate2;
	TFile* crate3;
	TFile* crate4;
	TFile* crate5;
	TFile* crate6;
	TFile* crate7;
	TFile* crate8;
	TTree* tree0;
	TTree* tree1;
	TTree* tree2;
	TTree* tree3;
	TTree* tree4;
	TTree* tree5;
	TTree* tree6;
	TTree* tree7;
	TTree* tree8;
};

#endif /* DATAREADER_H_ */
